feat(socket-mode): support undici v8 as a peer dependency - #2694
feat(socket-mode): support undici v8 as a peer dependency#2694WilliamBergamin wants to merge 9 commits into
Conversation
Widen the `undici` peer dependency range to `^7.0.0 || ^8.0.0` so consumers can bring either major. undici v8 requires Node >=22.19, while v7 continues to support Node >=20 — the source needs no changes, as v8 preserves every API socket-mode uses. CI now pairs each Node version with an undici major via a `versions` matrix and forces the socket-mode workspace onto that major before running the suite, so v8 support is actually exercised on capable Node versions. A new guardrail test asserts the Node/undici pairing (and never allows v8 on Node <22.19). Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
🦋 Changeset detectedLatest commit: c0746b2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Reduce the undici peer-dependency test to its two assertions, drop the comment essays and the general-purpose version-comparison helper in favor of a plain Node major check, and rename SOCKET_MODE_EXPECT_UNDICI_MAJOR to SOCKET_MODE_UNDICI_VERSION. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
|
@zimeg I'll need to update the status checks if we want to merge this |
zimeg
left a comment
There was a problem hiding this comment.
@WilliamBergamin LGTM! I'm bummed CI wasn't calling this out with regular installations but this is a good fix to include.
🧪 Longterm I'm worried about testing compatible dependencies with unit tests but let's get this merged to address an issue!
| }, | ||
| "peerDependencies": { | ||
| "undici": "^7.0.0" | ||
| "undici": "^7.0.0 || ^8.0.0" |
There was a problem hiding this comment.
🎯 praise: Thanks for keeping support consistent!
Co-authored-by: Eden Zimbelman <eden.zimbelman@salesforce.com>
Summary
Expand
@slack/socket-modeto support bothundici@^7andundici@^8as a peer dependency.peerDependencies.undicito^7.0.0 || ^8.0.0. The source needs no logic changesversions: [{ node, undici }]matrix and forces the socket-mode workspace onto that major before running the suite.Requirements